package org.anjan.dp.decorator.pizzasample;

/**
 * Created by chebbaso on 12/4/14.
 */
public class Mozzarella extends ToppingDecorator {


    public Mozzarella(Pizza pizza) {
        super(pizza);
        System.out.println("adding dough");
    }

    @Override
    public String getDescription() {
        return super.getDescription() + ", Mozzarella";
    }

    @Override
    public double getPrice() {
        return super.getPrice() + 0.5;
    }
}
